//package oop.demo.zoomanagementsystem;
package ZooManagementSystem;
/**
 * Item Class - Represents objects used in logistics operations
 * @author anka
 */
public class Item {
    public String name;
    public Double price;
    public String code;
    public Item(String name, String code) { // Constructor
        this.name = name;
        this.code = code;
    }
    public String getName() { // Get the name of the item
        return name;
    }
    public void setName(String name) { // Set the name of the item
        this.name = name;
    }
    public String getCode() { // Get the code of the item
        return code;
    }
    public void setCode(String code) { // Set the code of the item
        this.code = code;
    }
    public Double getPrice() { // Get the price of the item
        return price;
    }
    public void setPrice(Double price) { // Set the price of the item
        this.price = price;
    }
    public void display() { // Display the item details
        System.out.println("Item Name: " + name);
        System.out.println("Item Code: " + code);
        System.out.println("Item Price: " + price);
    }
}
